/* 移动端基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Element Plus 下拉框修复 */
.el-select-dropdown {
  z-index: 9999 !important;
}

.el-popper {
  z-index: 9999 !important;
}

/* 确保下拉框选项可见 */
.el-select-dropdown__item {
  display: block !important;
  visibility: visible !important;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
}

#app {
  height: 100%;
  overflow-x: hidden;
}

/* 移动端适配 */
.mobile-container {
  max-width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

/* 卡片样式 */
.mobile-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

/* 按钮样式调整 */
.el-button {
  border-radius: 8px;
}

.el-button--large {
  height: 48px;
  font-size: 16px;
}

/* 输入框样式调整 */
.el-input__wrapper {
  border-radius: 8px;
}

.el-input--large .el-input__wrapper {
  min-height: 48px;
}

/* 移动端导航栏 */
.mobile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-header .el-menu {
  background: transparent !important;
  border: none !important;
}

.mobile-header .el-menu-item {
  color: white !important;
  border-bottom: none !important;
}

.mobile-header .el-menu-item:hover,
.mobile-header .el-menu-item.is-active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* 移动端底部导航 */
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ebeef5;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 安全区域适配 */
.safe-area-top {
  padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 触摸优化 */
.touchable {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* 滚动优化 */
.scroll-container {
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}
